/**
 * 
 */
package cn.jhz.filesharingsystem.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author asus
 *
 */
public class UploadPropertiesUtil {
	private final Map<String, String> map = new HashMap<>();
	
	private UploadPropertiesUtil() {}

	static private class HodlerClass{
		static private final UploadPropertiesUtil instance = new UploadPropertiesUtil();
	}
	
	static public UploadPropertiesUtil getInstance() {
		return HodlerClass.instance;
	}
	
	public void addProperty(String key, String value) {
		map.put(key, value);
	}
	
	public String getProperty(String key) {
		return map.get(key);
	}
}
